<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>个人中心</title>
    <link href="/static/lib/bootstrap/v4/bootstrap.min.css" rel="stylesheet"/>

    <link href="/assets/user/toast/Css/displaystyle.css" rel="stylesheet" />
    <link href="/assets/user/toast/Js/syntaxhighlighter_3.0.83/styles/shCoreRDark.css" rel="stylesheet" />
    <link href="/assets/user/toast/Js/NZ-Plugin/Css/NZ-MsgBox.min.css" rel="stylesheet" />
    <link href="/assets/user/toast/Css/fontawesome-free-5.11.2-web/css/all.min.css" rel="stylesheet" />
    <link href="/assets/user/toast/Js/spin/spin.css" rel="stylesheet" />
    <link href="/assets/user/toast/Css/animate.min.css" rel="stylesheet" />

    <link href="/assets/user/style.css" rel="stylesheet" />

    <style>
        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        #sidebarMenu{
            width: 230px;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
            .ml-sm-auto, .mx-sm-auto {
                margin-left: 250px!important;
            }

        }
        @media (max-width: 767.98px){
            .sidebar {
                top: 0rem;
            }
            #sidebarMenu{
                width: 100%;
            }
        }
    </style>
    {block name="head"}{/block}
</head>
<body>

<nav class="navbar navbar-expand-lg sticky-top flex-md-nowrap shadow navbar-light bg-light navbar-dark bg-dark">
    <div class="container-xl">
        <a class="navbar-brand" href="{:url('/')}" style="">{$site.shop_pet_name}</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarScroll">
            <ul class="navbar-nav mr-auto my-2 my-lg-0 navbar-nav-scroll">
                <li class="nav-item active">
                    <a class="nav-link" href="/">网站首页</a>
                </li>
            </ul>
            <div>
                <ul class="navbar-nav mr-auto my-2 my-lg-0 navbar-nav-scroll">
                    <li class="nav-item active">
                        <a class="nav-link" href="#">欢迎：{:empty($user.nickname) ? $user.email : $user.nickname}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{:url('/logout')}">退出登录</a>
                    </li>

                </ul>
            </div>
            <!--<form class="d-flex">
                <input class="form-control mr-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success" type="submit">Search</button>
            </form>-->
        </div>
    </div>
</nav>

<div class="" style="max-width: 1140px; margin: 0 auto;">

    <div class="container-fluid">
        <div class="row">
            <nav id="sidebarMenu" style="letter-spacing: 1px;" class="d-md-block bg-light sidebar collapse">
                <div class="sidebar-sticky pt-3">
                    <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-2 mb-2 text-muted">
                        <span>个人中心</span>
                    </h6>
                    <ul class="nav flex-column" style="">
                        <li class="nav-item">
                            <a class="nav-link {:$navi == 'user' ? 'active' : ''}" href="{:url('/user')}">首页</a>
                        </li>
                        <!--<li class="nav-item">
                            <a class="nav-link {:$navi == 'myPosts' ? 'active' : ''}" href="{:url('user/my_posts')}">我的订单</a>
                        </li>-->
                        <li class="nav-item">
                            <a class="nav-link {:$navi == 'userInfo' ? 'active' : ''}" href="{:url('/user_info')}">帐号信息</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link {:$navi == 'userRecharge' ? 'active' : ''}" href="{:url('/user/recharge')}">账户充值</a>
                        </li>

                    </ul>

                    <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-2 text-muted">
                        <span>对接权限</span>
                    </h6>
                    <ul class="nav flex-column mb-2">
                        <li class="nav-item">
                            <a class="nav-link {:$navi == 'dock_info' ? 'active' : ''}" href="{:url('/dock_info')}">对接信息</a>
                            <!--<a class="nav-link {:$navi == 'comment' ? 'active' : ''}" href="{:url('/white_list')}">白名单</a>-->
                        </li>
                    </ul>
                    <!--<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-2 text-muted">
                        <span>开发者文档</span>
                    </h6>
                    <ul class="nav flex-column mb-2">
                        <li class="nav-item">
                            <a class="nav-link {:$navi == 'comment' ? 'active' : ''}" href="{:url('notice/comment')}">对接文档</a>
                            <a class="nav-link {:$navi == 'comment' ? 'active' : ''}" href="{:url('notice/comment')}">普通插件</a>
                            <a class="nav-link {:$navi == 'comment' ? 'active' : ''}" href="{:url('notice/comment')}">模板插件</a>
                            <a class="nav-link {:$navi == 'comment' ? 'active' : ''}" href="{:url('notice/comment')}">支付插件</a>
                            <a class="nav-link {:$navi == 'comment' ? 'active' : ''}" href="{:url('notice/comment')}">对接插件</a>
                        </li>
                    </ul>-->
                </div>
            </nav>
            <main role="main" class="ml-sm-auto" style="width: 100%;">
                {block name="main"}{/block}
            </main>
        </div>
    </div>
</div>
<script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="/static/lib/bootstrap/v4/bootstrap.bundle.min.js"></script>
<script src="/assets/user/toast/Js/syntaxhighlighter_3.0.83/shCore.js"></script>
<script src="/assets/user/toast/Js/syntaxhighlighter_3.0.83/shBrushJScript.js"></script>
<script src="/assets/user/toast/Js/NZ-Plugin/Js/NZ-MsgBox.min.js"></script>
<script src="/assets/user/toast/Js/NZ-Plugin/Js/NZ-Drag.min.js"></script>
<script src="/assets/user/toast/Js/spin/spin.js"></script>
{block name="footer"}
{/block}
</body>
</html>
